# ch04 The Book of Ruby - http://www.sapphiresteel.com

h1 = { 'key1' => 'val1',
       'key2' => 'val2',
       'key3' => 'val3',
       'key4' => 'val4' }
h2 = { 'key1' => 'val1',
       'KEY_TWO' => 'val2',
       'key3' => 'VALUE_3',
       'key4' => 'val4' }

p('h1',h1)
p('h2',h2)
p('h1.keys & h2.keys', h1.keys & h2.keys)
p(h1.values & h2.values)
p(h1.keys + h2.keys)
p(h1.values - h2.values)
p((h1.keys << h2.keys))
p((h1.keys << h2.keys).flatten.reverse)
